﻿@model NBCZ.Web.Models.LoginViewModel
@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>登录--后台管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link href="~/fsLayui/plugins/layui/css/layui.css" rel="stylesheet" />
    <link href="~/Content/login.css" rel="stylesheet" />
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/Scripts/jquery.unobtrusive-ajax.js")
    <script src="~/fsLayui/plugins/layui/layui.js"></script>
</head>
<body>
    <!--<video class="video-player" preload="auto" autoplay="autoplay" loop="loop" data-height="1080" data-width="1920" height="1080" width="1920">
        <source src="login.mp4" type="video/mp4">
    </video>-->
    <div class="video_mask"></div>
    <div class="login">
        <h1>NBCZ-管理登录</h1>
        @using (Ajax.BeginForm("Index", "Login", new AjaxOptions() { HttpMethod = "post" }, new { id = "divLogin", @class = "layui-form" }))
        {
            @Html.AntiForgeryToken();
             <div class="layui-form-item">
                 <input class="layui-input" name="UserCode" id="UserCode" placeholder="用户名" lay-verify="required" type="text" autocomplete="off">
            </div>
            <div class="layui-form-item">
                <input class="layui-input" name="Password" placeholder="密码" lay-verify="required" type="password" autocomplete="off">
            </div>
            <div class="layui-form-item form_code">
                <input class="layui-input" name="Captcha" placeholder="验证码" lay-verify="required" type="text" autocomplete="off">
                <div class="code">
                    <img width="116" id="imgCaptcha" height="36" alt="点击刷新" title="点击刷新" src="@Url.Action("Index", "Captcha", new { Area = "" })" style="vertical-align:middle;" onclick="this.src='@Url.Action("Index", "Captcha", new { Area = "" })?ts='+new Date()">
                </div>
            </div>
            <button class="layui-btn login_btn" lay-submit="" lay-filter="login">登录</button>
        }
    </div>
    <script type="text/javascript">
        layui.use(['form', 'layer'], function () {
           
        })

        if (window.top.location.href != window.location.href) {
            window.top.location = "../Admin/Login";
        };

        function changeCaptcha(){
            $("#imgCaptcha").click();
        }

    </script>
</body>
</html>
